<@c.html>
    <div class="card">
        <div class="card-body no-padding">
            <div class="panel panel-default no-margin">
                <div class="panel-heading">查询条件</div>
                <div class="panel-body">
                    <input />
                    <input />
                </div>
            </div>
            <table id="table"></table>
            <div id="toolbar">
                <button class="btn-success">新增</button>
                <button class="btn-success">更新</button>
                <button class="btn-success">删除</button>
                <button class="btn-success">查看</button>
                <button class="btn-success">导入</button>
                <button class="btn-success">导出</button>
            </div>
        </div>
    </div>
</@c.html>
<script type="text/javascript">
    $(function(){
        $('#table').bootstrapTable({
            url: '/data1.json',
            columns: [{
                field: 'id',
                title: 'Item ID'
            }, {
                field: 'name',
                title: 'Item Name'
            }, {
                field: 'name',
                title: 'Item Name'
            }, {
                field: 'name',
                title: 'Item Name'
            }, {
                field: 'price',
                title: 'Item Price'
            }],
            pagination: true,
            sidePagination: 'server',
            paginationLoop: false,
            toolbar: "#toolbar",
            showToggle : true,
            striped: true,
            cache : false,
            selectItemName: "id",
            showRefresh : true
        });
    });
</script>
